import random

name = input("what is your name?")
print("Hello," + name)
age = input("How old are you?")
hometown = input("Where do you live?")
print("Hello," + name + " You are " + age + " years old and live in " + hometown + ".")

name = "John"
age = 10
print( f"hello {name}, you are {age} years old.")

name = input("Name: ")
age = input("Age: ")
job = input("Job: ")
hobby = input("Hobby: ")
info = '''
Name: {}
Age: {}
Job: {}
Hobby: {}
'''.format(name, age, job, hobby)
print(info)

# 写一个猜年龄的游戏
print("Welcome to the guess age game!")
print("I'm thinking of a number between 1 and 100.")

# 随机生成一个数字
number = random.randint(1, 100)

# 玩家输入数字
guess = int(input("What's your guess? "))

# 判断输入的数字是否正确
if guess == number:
    print("Congratulations, you guessed it!")
else:
    if guess < number:
        print("Too low, try again.")
    else:
        print("Too high, try again.")

# 输出游戏结束信息
print("Game over. The number was", number)


# 你的⼯资多少决定了你的⼼态
# ⽉薪1000：⽼板，我是你爹。 ⽉薪2000：⽼板，wqnmlgbxxxx ⽉薪5000：⽼板脑⼦有坑，背
# 后说坏话。 ⽉薪1万：⽼板说的有有点问题，但我不说话。 ⽉薪2万：⽼板说啥就是啥吧，给钱就
# ⾏。 ⽉薪3万：⽼板说什么都是对，如果有⼈错了，那⼀定是我。 ⽉薪5万：996就像呼吸⼀样⾃
# 然。 ⽉薪10万：公司就是我家。
salary = int(input("请输入你的⽉薪："))
if salary < 1000:
    print("⽼板，我是你爹。")
elif salary < 2000:
    print("⽼板，wqnmlgbxxxx")
elif salary < 5000:
    print("⽼板脑⼦有坑，背后说坏话。")
elif salary < 10000:
    print("⽼板说的有有点问题，但我不说话。")
elif salary < 20000:
    print("⽼板说啥就是啥吧，给钱就⾏。")
elif salary < 30000:
    print("⽼板说什么都是对，如果有⼈错了，那⼀定是我。")
else:
    print("996就像呼吸⼀样⾃然。")